﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ImageDefine
{
    [Serializable]
    public class ImageCalibBase
    {
        public string strName;
        public string strRemark;
        public ImageCalibParameter CalibPara
        {
            get;
            set;
        }
        public string strRegPath;
        public ImageCalibBase()
        {
            strName = "";
            strRemark = "";
            strRegPath = "";
            CalibPara = new ImageCalibParameter();
        }
        virtual public void ShowActionForm()
        {

        }
        virtual public void CreateActioner()
        {
            return ;
        }
        virtual public string GetDecription()
        {
            return "";
        }
        virtual public bool TramImageToWorld(double dImageX, double dImageY, double dWorldX, double dWorldY, out double dResultX, out double dResultY)
        {
            dResultX = 0.0;
            dResultY = 0.0;
            return true;
        }
        virtual public bool TramImageToWorld(double dImageX, double dImageY, double dImageA, double dWorldX, double dWorldY, out double dResultX, out double dResultY, out double dResultA)
        {
            dResultX = 0.0;
            dResultY = 0.0;
            dResultA = 0.0;
            return true;
        }

    }
}
